package cn.tedu.egweibo5.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

/**
 * @author Justin Parker
 * @author 2024/8/15 22:42
 * @version 1.0
 */
@Data
public class UserLoginDTO {
    @ApiModelProperty(value = "密码", required = true)
    private String password;
    @Pattern(regexp = "^[\\u4e00-\\u9fa5]{0,7}|^[A-Za-z0-9]{0,14}$",message = "用户名不能超过7个汉字或14个英文字符")
    @ApiModelProperty(value = "用户名", required = true)
    private String username;
}
